package exception;

/**
 * 说明:
 *
 * @author: luohaowei
 * @date:2023/3/9
 **/
public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println("程序开始准备自爆");
        try {
            String line="";
            System.out.println(line.length());
        }catch (Exception e){
            System.out.println("程序修复中");
        }finally {
            System.out.println("修复成功");
        }
        System.out.println("程序结束");
    }
}
